aviutl2\generic\binding/
mod.rs1use crate::common::{AnyResult, AviUtl2Info};
2
3#[derive(Debug, Clone)]
5pub struct FilterPluginTable {
6 pub information: String,
9}
10
11pub trait GenericPlugin: Send + Sync + Sized {
14 fn new(info: AviUtl2Info) -> AnyResult<Self>;
16
17 fn register(&mut self, registry: &mut self::host_app::HostAppHandle);
19
20 fn on_project_load(&mut self, _project: &mut crate::generic::ProjectFile) {}
24
25 fn on_project_save(&mut self, _project: &mut crate::generic::ProjectFile) {}
27
28 fn with_instance<R>(f: impl FnOnce(&Self) -> R) -> R
34 where
35 Self: crate::generic::__bridge::GenericSingleton,
36 {
37 <Self as crate::generic::__bridge::GenericSingleton>::with_instance(f)
38 }
39
40 fn with_instance_mut<R>(f: impl FnOnce(&mut Self) -> R) -> R
46 where
47 Self: crate::generic::__bridge::GenericSingleton,
48 {
49 <Self as crate::generic::__bridge::GenericSingleton>::with_instance_mut(f)
50 }
51}
52
53mod project;
54pub use project::*;
55mod edit_section;
56pub use edit_section::*;
57mod host_app;
58pub use host_app::*;